<template>
<div>
  <h2>Music</h2>
  <p>{{$store.state.num}}</p>
  <p>{{$store.getters.doubleNum}}</p>
  <button @click="incrementWait">延迟1秒加一</button>
  <button @click="incrementNWait({n:2})">延迟1秒加n</button>
</div>
</template>


<script>
import {mapActions} from "vuex"
export default {
  name:"Music",
  methods:{
    ...mapActions(["incrementWait","incrementNWait"])
  }

}
</script>


<style></style>